package gui;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;

public class GameImage {
	private Image image;
	public GameImage(Image image) {
		image.getScaledInstance(10, 10, Image.SCALE_DEFAULT);
		this.image = image;
		
	}
	public void setSize(int width,int height, int hints) {
		this.image.getScaledInstance(width, height, hints);
	}
	public void setSize(int width,int height) {
		this.setSize(width, height, Image.SCALE_SMOOTH);
	}
	public int getWidth() {
		return image.getWidth(null);
	}
	public int getHeight() {
		return image.getHeight(null);
	}
	public void draw(Graphics g,int x,int y) {
		g.drawImage(image,x,y,null);
	}
}
